import {METHOD, COMMON_PARAMS} from './config.js'
import {sendRequest, imageUrl} from './base.js'

// 获取购物车内商品信息
const SHOP_CART_QUERY_ALL = 'cors/car/queryAll.do'

/**
 * 获取购物车内商品信息
 * @param params
 * @returns {*}
 */
export function queryAll(params) {
  let data = Object.assign(params || {}, COMMON_PARAMS)
  return sendRequest(imageUrl(SHOP_CART_QUERY_ALL), data, METHOD.POST)
}
